<?php
/**
 * 通知分类公告分类
 * User: hgq
 * Date: 2016/7/11 0008
 * Time: 上午9:35
 */
use yii\helpers\Url;

?>
<div>
    <?php
    if ($category != '') {
        ?>
        <form class="form-inline" role="form">
            <div class="form-group">
                <input type="hidden" id="edit_id" class="form-control" value="<?= $category["id"] ?>" disabled>
                <input type="hidden" id="edit_institution_code" class="form-control"
                       value="<?= $category["institution_code"] ?>" disabled>

                <label for="exampleInputPassword2">分类名称：</label>
                <input type="text" id="edit_name" class="form-control" value="<?= $category["name"] ?>">

                <label for="exampleInputPassword2">标识符：</label>
                <input type="text" id="edit_identifier_code" class="form-control"
                       value="<?= $category["identifier_code"] ?>">
            </div>
            <div class="form-group" style=" margin-top: 3px">
                <label for="exampleInputPassword2">分类描述：</label>
                <textarea id="edit_description" class="form-control" style="width: 470px;"
                          rows="3"><?= $category["description"] ?></textarea>
            </div>
        </form>
        <?php
    } else {
        ?>
        <form class="form-inline" role="form">
            <div class="form-group">
                <input type="hidden" id="edit_id" class="form-control" value="" disabled>
                <input type="hidden" id="edit_institution_code" class="form-control"
                       value="<?= $institution_code ?>" disabled>

                <label for="exampleInputPassword2">分类名称：</label>
                <input type="text" id="edit_name" class="form-control" value="">

                <label for="exampleInputPassword2">标识符：</label>
                <input type="text" id="edit_identifier_code" class="form-control" value="">
            </div>
            <div class="form-group" style=" margin-top: 3px">
                <label for="exampleInputPassword2">分类描述：</label>
                <textarea id="edit_description" class="form-control" style="width: 470px;" rows="3"></textarea>
            </div>
        </form>
        <?php
    }
    ?>
</div>
